﻿/******************************************************/
// Order Entity class 
/******************************************************/

using System;

namespace MAA.Entity
{
    /// <summary>
    /// Hold information of an order
    /// </summary>
    public class Order
    {
        public long ID { get; set; }
        public long UserID { get; set; }
        public long PostID { get; set; }
        public long Amount { get; set; }
        public int Price { get; set; }
        public DateTime Date { get; set; }
        public short Status { get; set; }

        /// <summary>
        /// Constructor of Order
        /// </summary>
        public Order()
        {
            ID = 0;
            UserID = 0;
            PostID = 0;
            Amount = 0;
            Price = 0;
            Date = new DateTime();
            Status = 0;
        }
    }
}